import random
import string

# source = string.ascii_uppercase + string.ascii_lowercase + string.digits
source = string.digits
captcha = ''
for i in range(8):
    captcha += random.choice(source)
print(captcha)

captcha2 = ''.join(random.choices(source, k=8))
print(captcha2)

nrpt_captcha = ''.join(random.sample(source, 8))
print(nrpt_captcha)
